package net.maku.events.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import net.maku.framework.mybatis.entity.BaseEntity;

import java.util.Date;

/**
 * 用户所答竞赛
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-22
 */

@Data
@TableName("user_contest_question")
public class UserContestQuestionEntity extends BaseEntity {
    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 业务id
     */
    private Long relationId;

    /**
     * 业务id
     */
    private Long relationSonId;

    /**
     * 业务id
     */
    private Long businessId;

    /**
     * 业务类型  0 知识竞赛  1 答题竞赛健步走站点
     */
    private Integer businessType;

    /**
     * 题目类型
     */
    private Integer questionType;

    /**
     * 判断题专属是否正确 0 否  1 是
     */
    private Integer whetherCorrect;

    /**
     * 用户所答的判断题答案 是否正确 0 否  1 是
     */
    private Integer userAnswerJudgment;

    /**
     * 竞赛题目id
     */
    private Long contestQuestionId;

    /**
     * 题目id
     */
    private Long questionId;

    /**
     * 题目题干
     */
    private String questionTitle;

    /**
     * 获得积分
     */
    private Double obtainedPoints;

    /**
     * 租户ID
     */
    private Long tenantId;


}